<template>
  <el-container>
    <el-aside width="auto">
      <common-aside/>
    </el-aside>
    <el-container>
      <el-header style="padding: 0">
        <common-header/>
      </el-header>
      <el-main>
        <el-col>
          <el-card class="box-card">
            <div class="user">
              <img src="../assets/logo.png" alt="">
              <div class="userInfo">
                <p div class="name">{{sys_id}}</p>
                <p div class="access">超级管理员</p>
              </div>
            </div>
            <div class="loginInfo">
              <p>上次登录时间：<span>2021-7-19</span></p>
              <p>上次登陆地点：<span>武汉</span></p>
            </div>
            <!--上面不行的话，就改成欢迎词吧-->
          </el-card>
          <el-calendar class="cal" v-model="value" style="max-height: 20vh">
          </el-calendar>
        </el-col>
        <!--图表，配置后显示，现在先注释了-->
<!--        <div style="float: right; width: 50%;">-->
<!--          <Chart />-->
<!--        </div>-->
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import CommonAside from '../components/CommonAside.vue';
import CommonHeader from "@/components/CommonHeader.vue";
//import Chart from '../src/components/Chart.vue';
import sys_id from'../views/login.vue'

export default {
  data(){
    return{
      value: new Date(),
      sys_id:null
    }
  },
  created(){
    this.sys_id=this.$route.query.sys_id;
  },
  components:{
    CommonAside,
    CommonHeader,
    // Chart
  }
};
</script>

<style>
.box-card {
  width: 450px;
}
.user {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;

  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
  img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 20px;
  }
  .userInfo {
    .name {
      font-size: 32px;
      margin-bottom: 10px;
    }
    .access {
      color: #999999;
    }
  }
}

.loginInfo {
  p {
    line-height: 20px;
    font-size: 14px;
    color: #999999;

    span {
      color: #666666;
      margin-left: 16px;
    }
  }
}
.cal{
  width: 450px;
  padding:10px 0;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}
</style>
